﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Common.Entities
{
    public class FacePoint
    {
        public enum PositionEnum
        {
            LeftEye = 1,
            RightEye = 2,
            Nose = 3,
            Mouth = 4,
            HeadTop = 5,
            Chin = 6,
            RightEar = 7,
            Jaw = 8
        }
        public PositionEnum Position { get; set; }
        public double X { get; set; }
        public double Y { get; set; }
        public bool IsMale { get; set; }

        public FacePoint(int x, int y)
        {
            this.X = x;
            this.Y = y;
        }

        public double Dist(FacePoint point)
        {
            return Math.Sqrt(Math.Pow((this.X - point.X), 2) + Math.Pow((this.Y - point.Y), 2));
        }
    }
}
